<?php $data = unserialize($node->data); ?>
<div class="node">	
	<?php $path = get_image_path($data, "image", "120_120"); ?>
	<?php if($path != NULL): ?>
		<div class="imagen"><div><div><div>
			<img src="<?php echo base_url(). $path?>" />
		</div></div></div></div>
	<?php endif;?>
	
	<div class="title"><?php echo anchor(get_node_url($node), $node->title); ?></div>
	
	<div class="date"><?php echo get_datetime_format($node->publish); ?></div>

	<?php if (isset($data) && isset($data['subtitle']) && $data['subtitle'] != NULL && $data['subtitle'] != ""):?>
		<div class="subtitle"><?php echo $data['subtitle']; ?></div>
	<?php endif; ?>

	<?php if (isset($data) && isset($data['sumario']) && $data['sumario'] != NULL && $data['sumario'] != ""):?>
		<?php $wysiwyg = $data['sumario']; ?>		
		<?php $wysiwyg = str_replace("contents/", base_url() . "contents/", $wysiwyg); ?>
		<div class="sumario"><?php echo $wysiwyg; ?></div>
	<?php endif; ?>

	<?php if (isset($data) && isset($data['cuerpo']) && $data['cuerpo'] != NULL && $data['cuerpo'] != ""):?>
		<?php echo anchor("node/".$node->url_name, "leer mas", "class='mas'"); ?>
	<?php endif;?>		

	<div class="clear"></div>
</div>